package com.hgk.common.common.util;

import android.content.Context;

//import com.baidu.mobstat.StatService;
import com.common.dongqiuhui.apps.comm.tools.BallLog;
//

/**
 * 统计接口类
 * 
 * @author hgl
 * 
 */
public class StatisticsUtil {

	private static final String TAG = StatisticsUtil.class.getSimpleName();


	/**
	 * 事件统计接口
	 * 
	 * @param context
	 *            :上下文
	 * @param event
	 *            :事件id
	 * @param label
	 *            :标签
	 */
	public static void onEvent(Context context, String event, String label) {
		try {
//			StatService.onEvent(context, event, label, 1);
			BallLog.d(TAG, "Event[" + event + "] label[" +
					"" + label + "]");
		} catch (Exception e) {
			BallLog.e(TAG, "onEvent e[" + e + "]");
		}
	}
	/**
	 * 事件时长开始统计接口
	 * 
	 * @param context
	 *            :上下文
	 * @param event
	 *            :事件id
	 * @param label
	 *            :标签
	 */
	public static void onEventStart(Context context,String event,String label){
		try {
//			StatService.onEventStart(context, event, label);
			BallLog.d(TAG, "EventStart[" + event + "] label[" + label + "]");
		} catch (Exception e) {
			BallLog.e(TAG, "onEvent start[" + e + "]");
		}
	}
	/**
	 * 事件时长结束统计接口
	 * 
	 * @param context
	 *            :上下文
	 * @param event
	 *            :事件id
	 * @param label
	 *            :标签
	 */
	public static void onEventEnd(Context context,String event,String label){
		try {
//			StatService.onEventEnd(context, event, label);
			BallLog.d(TAG, "EventEnd[" + event + "] label[" + label + "]");
		} catch (Exception e) {
			BallLog.e(TAG, "onEvent ene[" + e + "]");
		}
	}
	
}
